<!doctype html>
<html lang="en">
<head>
	<title>添加文章</title>
	<script type="text/javascript" src="__STATIC__/hdjs/jquery-1.8.2.min.js"></script>
    <link rel="stylesheet" href="__STATIC__/hdjs/hdjs.css"/>
    <script type="text/javascript" src="__STATIC__/hdjs/hdjs.min.js"></script>
	<js file='__CONTROLLER_VIEW__/js/validate.js'/>
	<css file='__STATIC__/kindeditor/themes/default/default.css' />
	<js file='__STATIC__/kindeditor/kindeditor-min.js' />
	<script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="content"]', {
				height : '320px',
				width : '900px',
				uploadJson : "{|U:'Files/upload'}",
				fileManagerJson : "{|U:'Files/manager'}",
				allowFileManager : true,
			});
		});
	</script>
</head>
<body>
<div class="">
	<div class='hd-title-header'><h2>添加文章</h2></div>
	<form method='post' enctype='multipart/form-data'>
		<div class="hd-tab">
			<ul class="hd-tab-menu">
				<li class="active" lab="base">
					<a> 基本设置 </a>
				</li>
				<li lab="tpl">
					<a>其他设置</a>
				</li>
			</ul>
			<div class="hd-tab-content">
			<div class="hd-tab-area" lab="base">
				<table class='hd-table hd-table-form hd-form'>
					<tr>
						<th class="hd-w50">标题</th>
						<td><input type='text' name='title' class="hd-w300 hd-h30"/></td>
					</tr>
					<tr>
						<th>栏目</th>
						<td>
							<select name='catid' class="hd-w300 hd-h30">
							<list from='$category' name='$c'>
							<option value='{$c.cid}'>{$c._name}</option>
							</list>
							</select>
						</td>
					</tr>
					<tr>
						<th>缩略图</th>
						<td><input type='file' name='thumb' class="hd-w300 hd-h30" /></td>
					</tr>
					<tr>
						<th>正文</th>
						<td><textarea name="content" id="content" ></textarea></td>
					</tr>
				</table>
			</div>
			<div class="hd-tab-area" lab="tpl">
				<table class='hd-table hd-table-form hd-form'>
					<tr>
						<th class="hd-w50">关键字</th>
						<td><input type='text' name='keywords' class="hd-w300 hd-h30"/></td>
					</tr>
					<tr>
						<th>描述</th>
						<td><textarea name='description' class="hd-w400 hd-h100"/></textarea></td>
					</tr>
					<tr>
						<th>点击次数</th>
						<td><input type='text' name='click' class="hd-w300 hd-h30" value='100'/></td>
					</tr>
					<tr>
						<th>来源</th>
						<td><input type='text' name='source' class="hd-w300 hd-h30" value=''/></td>
					</tr>
					<tr>
						<th>作者</th>
						<td><input type='text' name='author' class="hd-w300 hd-h30" value='管理员'/></td>
					</tr>
					<tr>
						<th>更新时间</th>
						<td>
						<input type="text" readonly="readonly" id="updatetime" name="updatetime" value="{|date:'Y/m/d h:i:s'}" class="hd-w150 hd-h30"/>
						</td>
					</tr>
				</table>	
			</div>
			</div>
		</div>
		<div style='text-align:right;margin:10px 100px;'>
			<input type='submit' value='提交发布' class='hd-btn hd-btn-primary '/>
		</div>
	</form>
</div>
</body>
</html>
